package com.efast.dmom.mes.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Aaron Liu
 *
 * @date:2020年1月9日
 */
public class CommonConstants {

	public static final String ROUTE_STEP_NAME_PRRFIX = "R";
	public static final String ROUTE_QUEUE_NAME_PRRFIX = "Q";
	public static final String ROUTE_ARC_NAME_PRRFIX = "A";
	public static final String ROUTE_STEP_NORMAL = "NORMAL";
	public static final String ROUTE_STEP_EMBEDDED = "EMBEDDED";

	public static final String ROUTE_QUEUE_TYPE_ENTRY = "ENTRY";
	public static final String ROUTE_QUEUE_TYPE_EXIT = "EXIT";
	public static final String ROUTE_QUEUE_TYPE_NORMAL = "NORMAL";

	public static final String ROUTE_ENTRY_QUEUE_NAME = "ENTRY";
	public static final String ROUTE_EXIT_QUEUE_NAME = "EXIT";

	public static final String ROUTE_DEFAULT_VERSION = "1";

	public static final String ROUTE_NODE_TYPE_STEP = "ROUTE_STEP";
	public static final String ROUTE_NODE_TYPE_QUEUE = "ROUTE_QUEUE";
	
	public static final String ROUTE_TYPE_NORMAL = "NORMAL";
	
	public static final int APS_PLAN_ORDER_STATUS_CREATED = 10;
	
	public static final int APS_PLAN_ORDER_STATUS_MERGED = 20;
	
	public static final int APS_PLAN_ORDER_STATUS_SPLITED = 30;
	
	public static final int APS_PLAN_ORDER_STATUS_SCHEDULED = 40;
	
	public static final int APS_PLAN_ORDER_STATUS_AUDIT = 50;
	
	public static final int APS_PLAN_ORDER_STATUS_BROADCAST = 60;
	
	public static final int APS_PLAN_ORDER_STATUS_FREEZE = 70;
	
	public static final List<String> SHIFYITEMSEQUENSE = new ArrayList<String>() {/**
		 * 
		 */
		private static final long serialVersionUID = 4361845448218095345L;

	{
		add("上班");
	}};
	
	public static final short CLOSE_TYPE_BUILD_TO_ORDER = 0;
	
	public static final short WORK_ORDER_STATUS_CREATED = 0;
	
	public static final short WORK_ORDER_STATUS_SPLITED = 1;
	
	public static final short WORK_ORDER_STATUS_AUDIT = 2;
	
	public static final short WORK_ORDER_STATUS_SCHEDULED = 3;
	
	public static final short WORK_ORDER_STATUS_FREEZED = 4;
	
	public static final short WORK_ORDER_STATUS_BROADCAST = 5;
	
	public static final short WORK_ORDER_STATUS_IN_PROCESS= 6;
	
	public static final short WORK_ORDER_STATUS_HOLD = 7;
	
	public static final short WORK_ORDER_STATUS_CLOSED = 8;
	
	public static final short WORK_ORDER_STATUS_CONFIRM = 9;
	
	public static final short WORK_ORDER_ITEM_STATUS_CREATED = 0;
	
	//精锐达计划单号编码
	public final static String PLAN_CODE = "PLAN_NO";
	
	//精锐达计划工单状态
	public static final int JRD_PLAN_STATUS_CREATED = 10;
	public static final int JRD_PLAN_STATUS_COMPLETED = 40;
	public static final int JRD_PLAN_STATUS_CLOSED = 30;
	public static final int JRD_PLAN_STATUS_RELEASE = 20;
	
}
